/**
 * 
 */
package com.bitBusy.manageyourriches.emailManagement;

import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Transport;

import android.os.AsyncTask;
import android.util.Log;


public class OutForDelivery extends AsyncTask<Message,Void,Postman.EMAILSENTCODES>{

	/* (non-Javadoc)
 * @see android.os.AsyncTask#doInBackground(Params[])
 */
@Override
protected Postman.EMAILSENTCODES doInBackground(Message... params) {
    try {
		Transport.send(params[0]);
		return Postman.EMAILSENTCODES.SUCCESS;
	} catch (MessagingException e) {
		// TODO Auto-generated catch block
		Log.e(this.getClass().getCanonicalName(), e.toString());
	    return Postman.EMAILSENTCODES.FAILURESYSEM;

	}

}

}